package com.ddwl.schema.bo.user;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import java.time.Instant;


/**
 * 类LowerUserDistQueryBo.java的实现描述：用户查询自己的下线
 *
 * @author zach
 * @Date :2020-09-02 10:49.
 */
@Setter
@Getter
@ApiModel(description = "用户查询自己的下线")
public class LowerUserDistQueryBo {

    /**
     * 查询类型 0
     */
    @NotNull
    @Pattern(regexp = "^0|1|2|3|4", message = "请输入正确的查询类型")
    @ApiModelProperty(value = "0查询全部下线,1查询分销员,2查询直接代理,3查询间接代理,4查询商城用户")
    private String type;

    @ApiModelProperty(value = "昵称")
    private String nickname;

    @ApiModelProperty(value = "开始时间")
    private Instant startTime;

    @ApiModelProperty(value = "结束时间")
    private Instant endTime;

    @ApiModelProperty(value = "用户ID", hidden = true)
    private String userId;

}
